Pod::Spec.new do |s|
s.name             = "ZNGLibrary"
s.version          = "1.0.0"
s.summary          = "在哪购项目依赖库."
s.description      = <<-DESC
Just for testing.
DESC
s.homepage         = "https://git.oschina.net/frozenkingdom/ZNGLibrary"
s.license          = 'MIT'
s.author           = { "张浩" => "82454642@qq.com" }
s.source           = { :git => "https://git.oschina.net/frozenkingdom/ZNGLibrary.git", :tag => s.version.to_s }

s.platform     = :ios, '7.0'
s.requires_arc = true

s.source_files = 'ZNGLibrary/*'

s.subspec 'User' do |user|
user.source_files = 'ZNGLibrary/User/*'
user.public_header_files = 'ZNGLibrary/User/*.h'
user.dependency 'ZNGLibrary/Singleton'
end

s.subspec 'Singleton' do |single|
single.source_files = 'ZNGLibrary/Singleton/*'
single.public_header_files = 'ZNGLibrary/Singleton/*.h'
end

s.subspec 'CityPicker' do |cp|
cp.source_files = 'ZNGLibrary/CityPicker/*'
cp.public_header_files = 'ZNGLibrary/CityPicker/*.h'
cp.resource_bundle = { 'CityPicker' => 'ZNGLibrary/CityPicker/*.txt'}
cp.dependency 'ZNGLibrary/UIKitExtension'
cp.dependency 'ZNGLibrary/Constants'
end

s.subspec 'MBProgressHUD+ZNG' do |mb|
mb.source_files = 'ZNGLibrary/MBProgressHUD+ZNG/*'
mb.public_header_files = 'ZNGLibrary/MBProgressHUD+ZNG/*.h'
mb.dependency 'MBProgressHUD'
end

s.subspec 'HttpRequestTool' do |rt|
rt.source_files = 'ZNGLibrary/HttpRequestTool/*'
rt.public_header_files = 'ZNGLibrary/HttpRequestTool/*.h'
rt.dependency 'AFNetworking'
rt.dependency 'ZNGLibrary/MBProgressHUD+ZNG'
rt.dependency 'ZNGLibrary/AlertView'
rt.dependency 'ZNGLibrary/Constants'
end

s.subspec 'RSA' do |rsa|
rsa.source_files = "ZNGLibrary/RSA/*"
rsa.public_header_files = 'ZNGLibrary/RSA/*.h'
end

s.subspec 'AlertView' do |alert|
alert.source_files = 'ZNGLibrary/AlertView/*'
alert.public_header_files = 'ZNGLibrary/AlertView/*.h'
end

s.subspec 'UIKitExtension' do |ue|
ue.source_files = 'ZNGLibrary/UIKitExtension/*'
ue.public_header_files = 'ZNGLibrary/UIKitExtension/*.h'
end

s.subspec 'Constants' do |c|
c.source_files = 'ZNGLibrary/Constants/*'
c.public_header_files = 'ZNGLibrary/Constants/*.h'
end

s.subspec 'SearchHistory' do |search|
search.source_files = 'ZNGLibrary/SearchHistory/*'
search.public_header_files = 'ZNGLibrary/SearchHistory/*.h'
search.dependency 'ZNGLibrary/Constants'
end

s.dependency 'MJExtension'
s.dependency 'UITableView+FDTemplateLayoutCell'
s.dependency 'SDWebImage'
s.dependency 'MJRefresh'
s.dependency 'IQKeyboardManager'
s.dependency 'Masonry'

end



